import junit.framework.Assert;

import org.junit.Before;
import org.junit.Test;
import org.monster.dao.PointFileDAO;
import org.monster.vo.PointVO;


public class JTest {

	
	private PointFileDAO dao;
	
	
	@Before
	public void doA() throws Exception{
		dao = new PointFileDAO();
	}
	

	@Test
	public void create()throws Exception{
		Assert.assertNotNull(dao);
		
		for(int i = 0; i < 100; i++){
			
			PointVO testObj = new PointVO("b"+i,123231D,45345345D);
		
			dao.create(testObj);
		
		}		
	}
	
	@Test
	public void testRead()throws Exception{
		Assert.assertNotNull(dao);
		
		PointVO result = dao.read("a99");
		
		Assert.assertNotNull(result);
		System.out.println("-------------");
		System.out.println(result);
		
	}	
	@Test
	public void testDelete()throws Exception{
		Assert.assertNotNull(dao);
		
		dao.delete("a99");
		
		
	}		
}
